cmake_minimum_required(VERSION 3.8)

set(BASE_FILES
        cm_conf.c
        cm_conf.h
        cm_conf_ex.cpp
        cm_conf_ex.h
        CMConfigCpp.cpp
        CMConfigCpp.h
        CMConfigGeneral.cpp
        CMConfigGeneral.h
        CMConfigSimple.cpp
        CMConfigSimple.h
        )

add_library(cm-config STATIC ${BASE_FILES})

add_executable(cm_config_test
        cm_config_test.cpp
        ${BASE_FILES}
)

target_link_libraries(cm_config_test
        utils
        third_jsoncpp
)

